gtk4.git
14 years agoUpdates
Matthias Clasen [Mon, 26 Sep 2011 01:13:33 +0000 (21:13 -0400)]
Updates

14 years agoDocumentation fixes
Matthias Clasen [Mon, 26 Sep 2011 00:58:59 +0000 (20:58 -0400)]
Documentation fixes

Mostly making sure that return values and varargs don't loose
their docs.

14 years agoGtkBox: make get_path_for_child() work if there are internal children
Michael Natterer [Sun, 25 Sep 2011 22:46:16 +0000 (00:46 +0200)]
GtkBox: make get_path_for_child() work if there are internal children

Use foreach() instead of forall() to find the child's siblings
because internal children of subclasses have no sibling relation
to the box' children. Also deal with the subclass failing to
implement get_path_for_child(). This caused an infinite widget
path invalidation loop of sorts with GimpMessageBox, which is a
vertical box with a decorative icon to the left.

14 years agoUpdate Czech translation
Petr Kovar [Sun, 25 Sep 2011 21:57:51 +0000 (23:57 +0200)]
Update Czech translation

14 years ago[l10n]Updated Catalan translation
Pau Iranzo [Sun, 25 Sep 2011 21:39:17 +0000 (23:39 +0200)]
[l10n]Updated Catalan translation

14 years ago[l10n]Updated Catalan translation
Gil Forcada [Sun, 25 Sep 2011 21:11:05 +0000 (23:11 +0200)]
[l10n]Updated Catalan translation

14 years agoUpdated Japanese translation
OKANO Takayoshi [Sun, 25 Sep 2011 16:23:22 +0000 (01:23 +0900)]
Updated Japanese translation

14 years agoGtkTreeViewColumn: fix x_offset returned by cell_get_position()
Michael Natterer [Sun, 25 Sep 2011 15:43:45 +0000 (17:43 +0200)]
GtkTreeViewColumn: fix x_offset returned by cell_get_position()

Fixes #640741 - gtk_tree_view_column_get_cell_position() seems to be broken

It is supposed to return the offset within the column, but returned
the offset within the tree, changed by allocation.x of the column's
button (which I don't really unserstand and was clearly not working).

14 years agoGtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()
Michael Natterer [Sun, 25 Sep 2011 12:50:31 +0000 (14:50 +0200)]
GtkTreeViewColumn: fix return value of gtk_tree_view_column_cell_get_position()

Return FALSE again if the passed in cell is not part of the column.
It was always returning TRUE since GtkCellArea was introduced.

14 years agoUpdated Bulgarian translation
Alexander Shopov [Sun, 25 Sep 2011 11:53:52 +0000 (14:53 +0300)]
Updated Bulgarian translation

14 years agoUpdated Telugu Translation
ipraveen [Sun, 25 Sep 2011 08:37:55 +0000 (14:07 +0530)]
Updated Telugu Translation

14 years agoUpdated Telugu Translation
ipraveen [Sun, 25 Sep 2011 06:59:17 +0000 (12:29 +0530)]
Updated Telugu Translation

14 years agoUpdated Telugu Translation
ipraveen [Sun, 25 Sep 2011 06:34:12 +0000 (12:04 +0530)]
Updated Telugu Translation

14 years agoUpdated Danish translation
Kenneth Nielsen [Sat, 24 Sep 2011 20:19:37 +0000 (22:19 +0200)]
Updated Danish translation

14 years agoUpdated Danish translation
Kenneth Nielsen [Sat, 24 Sep 2011 12:51:00 +0000 (14:51 +0200)]
Updated Danish translation

14 years agoAdd some missing entries to the docs
Matthias Clasen [Sat, 24 Sep 2011 02:18:44 +0000 (22:18 -0400)]
Add some missing entries to the docs

14 years agoUpdates
Matthias Clasen [Sat, 24 Sep 2011 01:06:23 +0000 (21:06 -0400)]
Updates

14 years agoUpdated properties Lithuanian translation
Aurimas Černius [Fri, 23 Sep 2011 21:32:27 +0000 (00:32 +0300)]
Updated properties Lithuanian translation

14 years agoUpdated Lithuanian translation
Aurimas Černius [Fri, 23 Sep 2011 21:29:50 +0000 (00:29 +0300)]
Updated Lithuanian translation

14 years agoFix module blacklisting
Matthias Clasen [Fri, 23 Sep 2011 20:25:33 +0000 (16:25 -0400)]
Fix module blacklisting

The handling of the module lists is a bit confusing here. There is
a global list that is populated with initial modules from GTK_MODULES,
and then there is a second list that is suppposed to hold the modules
loaded from the gtk-modules xsetting, which we attach to the GtkSettings
object. The blacklisting caused us to put the wrong modules into the
second list, and mess up the module refcounts, eventually double-freeing
memory when the setting changes repeatedly.

https://bugzilla.gnome.org/show_bug.cgi?id=659966

14 years agotextview: Fix comparison being the wrong way
Benjamin Otte [Fri, 23 Sep 2011 20:22:35 +0000 (22:22 +0200)]
textview: Fix comparison being the wrong way

Keynav failed when the position did _not_ change.

14 years agogtktreeviewaccessible: do not trigger an assertion
Alban Crequy [Thu, 22 Sep 2011 20:39:06 +0000 (16:39 -0400)]
gtktreeviewaccessible: do not trigger an assertion

The following assertion was triggered in model_row_inserted() because
iterate_thru_children() modifies the parameter tree_model before passing it to
traverse_cells().

Gtk-CRITICAL **: gtk_tree_path_compare: assertion `b->depth > 0' failed

The stack with the bug was:

  #0  gtk_tree_path_compare at gtktreemodel.c
  #1  traverse_cells at gtktreeviewaccessible.c
  #2  model_row_inserted at gtktreeviewaccessible.c

This patch calls iterate_thru_children() with a copy of the path so that the
original is not modified.

14 years agoGtkAssistant: Fix problems with gtk_widget_show_all()
Bastien Nocera [Thu, 22 Sep 2011 18:46:40 +0000 (19:46 +0100)]
GtkAssistant: Fix problems with gtk_widget_show_all()

gtk_widget_show_all() would have shown every single item inside
the GtkAssistant sidebar, as well as all the navigation buttons.

https://bugzilla.gnome.org/show_bug.cgi?id=659826

14 years agoDisable font fallback in the fontchooser preview
Christian Persch [Thu, 22 Sep 2011 22:32:44 +0000 (00:32 +0200)]
Disable font fallback in the fontchooser preview

The preview is should show the selected font, not whatever
font contains glyphs for the preview text.

14 years agofontbutton: Properly display absolute sizes
Benjamin Otte [Thu, 22 Sep 2011 19:35:25 +0000 (21:35 +0200)]
fontbutton: Properly display absolute sizes

Display them the same way as Pango does.

14 years agofontbutton: Properly update label after property changes
Benjamin Otte [Thu, 22 Sep 2011 19:27:22 +0000 (21:27 +0200)]
fontbutton: Properly update label after property changes

Previously, the font wasn't properly updated after some changes.

14 years agofontbutton: Display the same text as elsewhere
Benjamin Otte [Thu, 22 Sep 2011 19:21:59 +0000 (21:21 +0200)]
fontbutton: Display the same text as elsewhere

In particular, display names of families that don't have an installed
font.

14 years agofontchooser: Use fixed height mode for the font face list
Benjamin Otte [Thu, 22 Sep 2011 16:17:54 +0000 (18:17 +0200)]
fontchooser: Use fixed height mode for the font face list

Now that we enforce same height anyway, this just further speeds things
up.

14 years agofontchooser: Set a fixed size on the preview cell
Benjamin Otte [Thu, 22 Sep 2011 16:00:37 +0000 (18:00 +0200)]
fontchooser: Set a fixed size on the preview cell

This way, all rows have the same height. It has 3 advantages:
1) No actual computation is necessary to compute the size of the cell.
   This speeds up the list tremendously (filling out the list goes from
   25s to 3s).
2) Buggy fonts don't mess up the list anymore with their weird sizes.
   Instead, they are clipped / empty space is added.
3) Buggy fonts look more buggy. So their use is hopefully discouraged.

14 years agofontchooser: Split out computing of the preview text attributes
Benjamin Otte [Thu, 22 Sep 2011 15:34:56 +0000 (17:34 +0200)]
fontchooser: Split out computing of the preview text attributes

14 years agofontchooser: Use absolute size for the preview text in the list
Benjamin Otte [Wed, 21 Sep 2011 18:31:06 +0000 (20:31 +0200)]
fontchooser: Use absolute size for the preview text in the list

With absolute sizes, Pango is way better at getting the actual sizes of
the fonts to match up. It's a bit harder to compute a proper value for
this, whcih makes the code ugly, but as long as it works better...

14 years agofontchooser: Set cell data as text + attributes instead of markup
Benjamin Otte [Wed, 21 Sep 2011 01:27:43 +0000 (03:27 +0200)]
fontchooser: Set cell data as text + attributes instead of markup

This is quite a bit uglier, but allows more freedom.

14 years agofontchooser: Reselect font when it's unfiltered
Benjamin Otte [Wed, 21 Sep 2011 03:49:43 +0000 (05:49 +0200)]
fontchooser: Reselect font when it's unfiltered

14 years agofontchooser: Only compare font descriptions when families match
Benjamin Otte [Wed, 21 Sep 2011 03:44:22 +0000 (05:44 +0200)]
fontchooser: Only compare font descriptions when families match

This way, we can find fonts way quicker as we only need to create font
descriptions for fonts with matching families. Most importantly, we're
rather quick in the "the font doesn't exist" case.

14 years agofontchooser: Only create font descriptions on demand
Benjamin Otte [Wed, 21 Sep 2011 03:24:26 +0000 (05:24 +0200)]
fontchooser: Only create font descriptions on demand

pango_font_describe() is expensive, so try not to use it.

14 years agofontchooser: Make all setters go through merge_font_desc()
Benjamin Otte [Wed, 21 Sep 2011 00:51:08 +0000 (02:51 +0200)]
fontchooser: Make all setters go through merge_font_desc()

Don't special case cursor_changed anymore.

14 years agofontchooser: Update range marks properly
Benjamin Otte [Wed, 21 Sep 2011 00:40:26 +0000 (02:40 +0200)]
fontchooser: Update range marks properly

Range marks weren't updated previously when the font was set
programmatically. Also, setting the range marks could cause the font
size to change.

14 years agofontchooser: Reorganize code a bit
Benjamin Otte [Tue, 20 Sep 2011 23:04:00 +0000 (01:04 +0200)]
fontchooser: Reorganize code a bit

The main reason is so that we have a new function that we can use from
the cursor_changed_cb.

14 years agofontchooser: Don't store the current face and family anymore
Benjamin Otte [Tue, 20 Sep 2011 22:31:26 +0000 (00:31 +0200)]
fontchooser: Don't store the current face and family anymore

They can be queried on-demand from the font list.

14 years agofontchooser: Take font description from model
Benjamin Otte [Tue, 20 Sep 2011 22:23:07 +0000 (00:23 +0200)]
fontchooser: Take font description from model

... instead of taking face and constructing it from there.

14 years agofontchooser: Sanitize variable declarations
Benjamin Otte [Tue, 20 Sep 2011 22:19:51 +0000 (00:19 +0200)]
fontchooser: Sanitize variable declarations

- no empty lines between variables
- no unnecessary casts
- use glib-style casts
- no spaces

14 years agofontchooser: Fix leak
Benjamin Otte [Tue, 20 Sep 2011 22:14:02 +0000 (00:14 +0200)]
fontchooser: Fix leak

the path variable is set, not filled in.

14 years agofontchooser: Store an iter to the current font
Benjamin Otte [Tue, 20 Sep 2011 22:07:21 +0000 (00:07 +0200)]
fontchooser: Store an iter to the current font

Note that we cannot use GtkTreeSelection for this, because when the font
list is filtered the current font may not be visible.

14 years agocssprovider: Remove outdated docs
Morten Welinder [Tue, 20 Sep 2011 19:14:50 +0000 (21:14 +0200)]
cssprovider: Remove outdated docs

14 years agofontchooser: Store tree model member variables as GtkTreeModel
Benjamin Otte [Tue, 20 Sep 2011 15:07:44 +0000 (17:07 +0200)]
fontchooser: Store tree model member variables as GtkTreeModel

... and remove the now unnecessary treemodel casts everywhere.

Just code cleanup.

14 years agofontchooser: Rename populate_list() function
Benjamin Otte [Tue, 20 Sep 2011 15:06:18 +0000 (17:06 +0200)]
fontchooser: Rename populate_list() function

Name it gtk_font_chooser_widget_load_fonts(). Also, don't take any
arguments, they were the same everywhere and they're member variables of
the font chooser anyway.

14 years agofontchooser: Make changing the preview text fast
Benjamin Otte [Tue, 20 Sep 2011 14:49:49 +0000 (16:49 +0200)]
fontchooser: Make changing the preview text fast

Instead of reloading the font list, we now just queue a redraw. This
works, because the preview text is added using a cell data func instead
of a custom column.

14 years agofontchooser: Use a cell_data_func for the font list
Benjamin Otte [Tue, 20 Sep 2011 14:32:15 +0000 (16:32 +0200)]
fontchooser: Use a cell_data_func for the font list

This way, we don't have to store the preview text in the list.

14 years agofontchooser: Don't scroll in the populate_list() function
Benjamin Otte [Tue, 20 Sep 2011 01:37:11 +0000 (03:37 +0200)]
fontchooser: Don't scroll in the populate_list() function

14 years agofontchooser: Remove needless scroll calls
Benjamin Otte [Tue, 20 Sep 2011 01:10:33 +0000 (03:10 +0200)]
fontchooser: Remove needless scroll calls

Previous functions take care of scrolling already.

14 years agofontchooser: Introduce gtk_font_chooser_find_font()
Benjamin Otte [Tue, 20 Sep 2011 00:54:42 +0000 (02:54 +0200)]
fontchooser: Introduce gtk_font_chooser_find_font()

... which looks up the font in the list of fonts. This then can be used
to select an actual font upon changes.

Also fixes cases where the get_family() and get_face() functions would
return outdated data when set_font() had been called.

14 years agofontchooser: Rewrite size changes
Benjamin Otte [Mon, 19 Sep 2011 23:17:29 +0000 (01:17 +0200)]
fontchooser: Rewrite size changes

They now go through gtk_font_chooser_widget_take_font_desc(). The end
goal is to make all changes go through this function, so that all
updates that are happening are easy to track.

Another change is that the code now merges the font description instead
of just using the new one. This avoids weird situations when people set
the font "Bold" for example, which has neither a size nor a font family.

14 years agofontchooser: Fix size computation
Benjamin Otte [Mon, 19 Sep 2011 22:30:19 +0000 (00:30 +0200)]
fontchooser: Fix size computation

14 years agofontchooser: Fix gcc warnings
Benjamin Otte [Wed, 21 Sep 2011 02:21:42 +0000 (04:21 +0200)]
fontchooser: Fix gcc warnings

14 years agoUpdated Korean translation
Changwoo Ryu [Thu, 22 Sep 2011 18:01:11 +0000 (03:01 +0900)]
Updated Korean translation

14 years agoUpdated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:37:26 +0000 (16:37 +0200)]
Updated Swedish translation

14 years agoUpdated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:36:58 +0000 (16:36 +0200)]
Updated Swedish translation

14 years agoUpdated Swedish translation
Daniel Nylander [Thu, 22 Sep 2011 14:36:25 +0000 (16:36 +0200)]
Updated Swedish translation

14 years agoUpdated Brazilian Portuguese translation.
Antonio Fernandes C. Neto [Thu, 22 Sep 2011 14:30:55 +0000 (10:30 -0400)]
Updated Brazilian Portuguese translation.

14 years agoUpdated Oriya Translation
Manoj Kumar Giri [Thu, 22 Sep 2011 14:05:44 +0000 (19:35 +0530)]
Updated Oriya Translation

14 years agoUpdate Assamese translation
Nilamdyuti Goswami [Thu, 22 Sep 2011 10:44:58 +0000 (12:44 +0200)]
Update Assamese translation

14 years ago[l10n] Updated German translation
Mario Blättermann [Thu, 22 Sep 2011 06:34:07 +0000 (08:34 +0200)]
[l10n] Updated German translation

14 years agoUpdated French translation
Bruno Brouard [Wed, 21 Sep 2011 18:14:03 +0000 (20:14 +0200)]
Updated French translation

14 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Wed, 21 Sep 2011 16:04:18 +0000 (18:04 +0200)]
Updated Basque language

14 years agoUpdated Basque language
Inaki Larranaga Murgoitio [Wed, 21 Sep 2011 15:58:45 +0000 (17:58 +0200)]
Updated Basque language

14 years agogtkmountoperation-x11: unbreak compilation on OpenBSD.
Antoine Jacoutot [Tue, 20 Sep 2011 09:57:49 +0000 (11:57 +0200)]
gtkmountoperation-x11: unbreak compilation on OpenBSD.

Add missing header to prevent undeclared definitions.
Bug #659565

14 years agoUpdated Portuguese translation
Duarte Loreto [Tue, 20 Sep 2011 23:59:41 +0000 (00:59 +0100)]
Updated Portuguese translation

14 years agoUpdated Hungarian translation
Gabor Kelemen [Tue, 20 Sep 2011 22:53:47 +0000 (00:53 +0200)]
Updated Hungarian translation

14 years agoUpdated Latvian translation.
Rudolfs Mazurs [Tue, 20 Sep 2011 19:30:01 +0000 (22:30 +0300)]
Updated Latvian translation.

14 years ago[l10n] Updated German translation
Mario Blättermann [Tue, 20 Sep 2011 18:47:32 +0000 (20:47 +0200)]
[l10n] Updated German translation

14 years agoUpdated Hungarian translation
Gabor Kelemen [Tue, 20 Sep 2011 17:43:05 +0000 (19:43 +0200)]
Updated Hungarian translation

14 years agoUpdated Polish translation
Piotr Drąg [Tue, 20 Sep 2011 15:32:11 +0000 (17:32 +0200)]
Updated Polish translation

14 years agoUpdated Polish translation
Piotr Drąg [Tue, 20 Sep 2011 15:30:06 +0000 (17:30 +0200)]
Updated Polish translation

14 years agoUpdated Brazilian Portuguese translation
Antonio Fernandes C. Neto [Tue, 20 Sep 2011 15:04:44 +0000 (12:04 -0300)]
Updated Brazilian Portuguese translation

14 years agoUpdated Slovenian translation
Matej Urbančič [Tue, 20 Sep 2011 11:23:30 +0000 (13:23 +0200)]
Updated Slovenian translation

14 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 20 Sep 2011 08:59:57 +0000 (10:59 +0200)]
Updated Spanish translation

14 years agoUpdated Russian translation
Yuri Myasoedov [Tue, 20 Sep 2011 08:05:06 +0000 (12:05 +0400)]
Updated Russian translation

14 years agoGtkTreeModelFilter: Fix build warnings
Xavier Claessens [Mon, 19 Sep 2011 09:20:08 +0000 (11:20 +0200)]
GtkTreeModelFilter: Fix build warnings

https://bugzilla.gnome.org/show_bug.cgi?id=659441

14 years agoUpdated Galician translations
Fran Dieguez [Mon, 19 Sep 2011 23:27:13 +0000 (01:27 +0200)]
Updated Galician translations

14 years agoBump version
Matthias Clasen [Mon, 19 Sep 2011 22:03:11 +0000 (18:03 -0400)]
Bump version

14 years ago3.1.92
Matthias Clasen [Mon, 19 Sep 2011 21:39:00 +0000 (17:39 -0400)]
3.1.92

14 years agoUpdates
Matthias Clasen [Mon, 19 Sep 2011 20:13:42 +0000 (16:13 -0400)]
Updates

14 years agoUpdated Polish translation
Piotr Drąg [Mon, 19 Sep 2011 20:21:53 +0000 (22:21 +0200)]
Updated Polish translation

14 years agofontchooser: Remove special case for a single signal handler
Benjamin Otte [Mon, 19 Sep 2011 19:17:01 +0000 (21:17 +0200)]
fontchooser: Remove special case for a single signal handler

14 years agofontchooser: Remove useless code
Benjamin Otte [Mon, 19 Sep 2011 18:37:38 +0000 (20:37 +0200)]
fontchooser: Remove useless code

gtk_adjustment_set_value() clamps itself, no need to do the clamping.

But I was impressed at the amount of comments.

14 years agofontchooser: Don't store the size separately
Benjamin Otte [Mon, 19 Sep 2011 17:54:40 +0000 (19:54 +0200)]
fontchooser: Don't store the size separately

Instead, use the font description's size.

14 years agofontchooser: Don't reload the fonts on style changes
Benjamin Otte [Mon, 19 Sep 2011 16:51:11 +0000 (18:51 +0200)]
fontchooser: Don't reload the fonts on style changes

It's not necessary, because nothing changes.

14 years agofontchooser: Assume NULL screen means the default screen
Benjamin Otte [Mon, 19 Sep 2011 16:35:57 +0000 (18:35 +0200)]
fontchooser: Assume NULL screen means the default screen

... and update the font list only when the screen actually changes.

14 years agofontchooser: Store the font description in the model
Benjamin Otte [Mon, 19 Sep 2011 15:58:51 +0000 (17:58 +0200)]
fontchooser: Store the font description in the model

It's actually expensive to create (>5ms per font with >1000 fonts
installed), so better cache it.

14 years agofontchooser: Move the filter func to the visibility func
Benjamin Otte [Mon, 19 Sep 2011 13:45:24 +0000 (15:45 +0200)]
fontchooser: Move the filter func to the visibility func

... instead of rereading all the fonts every time.

With this change, the liststore now contains every font face known to
GTK, so we can actually walk it for matching fonts.

14 years agofontchooser: Fix code to make it not look like GTK 0.9
Benjamin Otte [Mon, 19 Sep 2011 13:16:02 +0000 (15:16 +0200)]
fontchooser: Fix code to make it not look like GTK 0.9

14 years agofontchooser: List font description as font description
Benjamin Otte [Fri, 16 Sep 2011 08:41:24 +0000 (10:41 +0200)]
fontchooser: List font description as font description

Otherwise there will be two properties listed as "Font" in property
selectors (in Glade or testfontchooser).

14 years agofontchooser: Family or face can never be NULL
Benjamin Otte [Fri, 16 Sep 2011 08:26:55 +0000 (10:26 +0200)]
fontchooser: Family or face can never be NULL

... so there's no need to special-case those situations.

14 years agofontchooser: Use gtk_list_store_insert_with_values()
Benjamin Otte [Fri, 16 Sep 2011 08:21:58 +0000 (10:21 +0200)]
fontchooser: Use gtk_list_store_insert_with_values()

... instead of append() + set_values()

14 years agofontchooserwidget: Simplify function
Benjamin Otte [Fri, 16 Sep 2011 08:14:15 +0000 (10:14 +0200)]
fontchooserwidget: Simplify function

- Don't do unnecessary casts
- Fix weird variable declaration indenting
- Fix loop indentation
- Use a for loop for iterating over a list, instead of a while loop
- Casefold font name only once, instead of every iteration
- Remove needless true_var = true_var && TRUE assignment

14 years agoUpdated British English translation
Bruce Cowan [Mon, 19 Sep 2011 12:11:23 +0000 (13:11 +0100)]
Updated British English translation

14 years agoGtkPaned: Create the child window at the correct position
Chris Coulson [Mon, 19 Sep 2011 11:28:59 +0000 (12:28 +0100)]
GtkPaned: Create the child window at the correct position

When there is only a single child, create its window at the correct position
https://bugzilla.gnome.org/show_bug.cgi?id=659241

14 years agoUpdated Serbian translation
Мирослав Николић [Mon, 19 Sep 2011 01:08:22 +0000 (03:08 +0200)]
Updated Serbian translation

14 years agoUpdated Latvian translation.
Rudolfs Mazurs [Sun, 18 Sep 2011 17:55:24 +0000 (20:55 +0300)]
Updated Latvian translation.

14 years agoUpdated Swedish translation
Daniel Nylander [Sun, 18 Sep 2011 17:35:34 +0000 (19:35 +0200)]
Updated Swedish translation